package com.zsk.shop.model.params;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size;

/**
 * @author ljh
 */
@Data
public class GopUserAddParams {

    @Size(max = 20, message = "名称限定在20字以内容")
    @ApiModelProperty(name = "name", value = "平台昵称", dataType = "String")
    private String name;

    @Pattern(regexp = "^1[2-9]\\d{9}$", message = "手机号格式不对")
    @ApiModelProperty(name = "phone", value = "手机账号", dataType = "String")
    private String phone;

    @ApiModelProperty(name = "pwd", value = "密码", dataType = "String")
    private String pwd;

    @ApiModelProperty(name = "avatar", value = "平台头像", dataType = "String")
    private String avatar;

    @ApiModelProperty(name = "isInvalid", value = "角色状态,是否是禁用用户", dataType = "Boolean")
    private Boolean isInvalid;

    @ApiModelProperty(name = "gender", value = "性别（0未知，1男，2女）", dataType = "Integer")
    private Integer gender;

    @ApiModelProperty(name = "roleId", value = "角色编号", dataType = "Long")
    private Long roleId;

}
